package com.fyl.pattern.proxy.jdk_proxy;

public class Client {
    public static void main(String[] args) {
        //创建代理工厂
        ProxyFactory proxyFactory = new ProxyFactory();
        //创建代理对象
        SellTickets proxyObject = proxyFactory.getProxyObject();
        //调用代理对象的方法
        proxyObject.sell();
    }
}
